-- GENERATED SPELL FOR [Summoned Bloodwarder Mender] --


function spell0_20083(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(35096,pUnit)
pUnit:RegisterEvent('Sorts_20083', 3500, 1)
end

function spell1_20083(pUnit, Event) --@Holy Fury,n/a--
pUnit:FullCastSpellOnTarget(34809,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20083', 663, 1)
end

function spell2_20083(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(17194,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20083', 1500, 1)
end

function spell3_20083(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(17287,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20083', 1500, 1)
end

function Sorts_20083(pUnit, Event)
local choix_sorts_20083 = math.random(0, 3)
if choix_sorts_20083 == 0 then
pUnit:RegisterEvent('spell0_20083', 1, 1)
end
if choix_sorts_20083 == 1 then
pUnit:RegisterEvent('spell1_20083', 1, 1)
end
if choix_sorts_20083 == 2 then
pUnit:RegisterEvent('spell2_20083', 1, 1)
end
if choix_sorts_20083 == 3 then
pUnit:RegisterEvent('spell3_20083', 1, 1)
end
end

function mob20083_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20083', math.random(1500, 3000), 1)
end

function mob20083_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20083_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20083_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20083, 1, 'mob20083_Action')
RegisterUnitEvent(20083, 2, 'mob20083_Leave')
RegisterUnitEvent(20083, 3, 'mob20083_Kill')
RegisterUnitEvent(20083, 4, 'mob20083_Die')
